package com.njym.java.security.app.biz;

import com.github.pagehelper.PageHelper;
import com.njym.java.security.app.entity.FamilyNews;
import com.njym.java.security.app.mapper.FamilyNewsMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-06 09:12:35
 */
@Service
public class FamilyNewsBiz extends BaseBiz<FamilyNewsMapper,FamilyNews> {
    @Resource
    private FamilyNewsMapper familyNewsMapper;

    public List<FamilyNews> queryAPPNews(Integer page, Integer limit){
        PageHelper.startPage(page, limit);
        return familyNewsMapper.queryAPPNews();
    }

    public int countAPPNews(){
        return familyNewsMapper.countAPPNews();
    }
}